﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/default.master" AutoEventWireup="true" CodeFile="forgetpassword.aspx.cs" Inherits="Shared_forgetpassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <title>找回密码</title>
<script type="text/javascript">
<!--//--><![CDATA[//><!--

  function cS(){
	   var email = $("#ctl00_ContentPlaceHolder1_name").val();    //注意此处控件ID，为在浏览器中重新获得
	   var yzm = $("#yzm").val();
	   var isemail=(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/);
	   var v = GetCookie("commentcode");
       if (email=="")
       {
          $("#gjz").html("");
          $("#gjz").html("请输入邮件地址");
          return false;
       }
       if (email.length>25)
       {
          $("#gjz").html("");
          $("#gjz").html("邮件地址过长");
          return false
       }
       if (!isemail.test(email))
       { 
          $("#gjz").html("");
          $("#gjz").html("邮件地址不合法");
          return false;
       }
       if(yzm==""||yzm!=v)
       {
          $("#gjz").html("");
          $("#gjz").html("验证码输入错误");
          return false;
       }
      /* if(!isEmailExist())
       {
          $("#isMailFound").html("");
          $("#isMailFound").html("很抱歉，"+email+" 并不是本站的注册用户或电子邮件地址。");
          return false;
       }*/
   }	   
 /*  function isEmailExist()
   {
        
        return isMailExist;
   }*/
            
//--><!]]>
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <!--<form action="/shopuser/password"  accept-charset="UTF-8" method="post" id="shopuser-pass-form" enctype="multipart/form-data" onsubmit="return cS();"> -->
<div><!--主体部分开始-->
<div class="liuc">
	<div class="liuc_l">
		<div class="l_top"></div>
		<div class="login_area">
			<h3>密码找回</h3>
			<ul class="login_area_cont2">
			<FONT COLOR="#FF0000" runat="server" id="isMailFound" visible="false">很抱歉，该邮件地址并不是本站的注册用户或电子邮件地址。</FONT>
				<li><label>输入注册邮箱</label><span><input id="name" runat="server" name="name" type="text" class="liuc_input2" value="" /></span></li>
				<li><label>验证码</label><span><input  type="text" class="liuc_input2" value="" id="yzm"/>&nbsp;&nbsp;<FONT COLOR="#FF0000" id="gjz"></FONT></span></li>
				<li class="login_area_cont2_small"><img id="imagesecode" src="ValidateCode.aspx" /><em><a style="cursor:pointer" onClick="DoFresh();return false;">看不清，换一张！</a></em></li>
				<li class="login_area_cont2_small"><input name="op" runat="server" onserverclick="op_Click" type="submit" value="发送"  class="liuc_but4" onclick="return cS();" /></li>
			</ul>
		</div>
		<div class="l_bot"></div>
	</div>
	<div class="login_r">
		<h5>没有5151团帐户？</h5>
		<p>十秒钟快速<em><a href="register-destination=products.htm" >注册</a></em></p>
		<div class="login_r_bot"></div>
	</div>
</div>
<!--主体部分结束-->
<input type="hidden" name="form_build_id" id="form-2483298837325b9315808de5e44865f7" value="form-2483298837325b9315808de5e44865f7"  />
<input type="hidden" name="form_id" id="edit-shopuser-pass-form" value="shopuser_pass_form"  />

</div><!--</form> -->


</asp:Content>

